# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxtst
pkgver=1.2.5
pkgrel=0
pkgdesc="X11 Testing -- Resource extension library"
url="https://wiki.freedesktop.org/xorg/"
arch="all"
license="MIT"
options="!check"  # No test suite.
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
makedepends="xorgproto libx11-dev libxext-dev libxi-dev util-macros"
source="https://www.x.org/releases/individual/lib/libXtst-$pkgver.tar.xz
	"
builddir="$srcdir"/libXtst-$pkgver

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="
848fa580d7abccd48c9ca3440f92e299839ada0912ed60d38d4d4f5bf37431cd02d7059265ab4e524c3e2cb9c368b9b90b863d1ed97d74979ef8811fc5e635a9  libXtst-1.2.5.tar.xz
"
